package io.ouka.rule.engine;

import io.ouka.rule.logic.LogicFilter;
import io.ouka.rule.logic.SexLogic;
import io.ouka.rule.logic.UserAgeLogic;
import io.ouka.rule.logic.WorkLogic;

import java.util.HashMap;
import java.util.Map;

/**
 * Description:
 * User: Ouka
 * Date: 2020-06-08
 * Time: 21:18
 */
public class EngineConfig {
    protected static Map<String, LogicFilter> logicFilterMap;

    static {
        logicFilterMap = new HashMap<>();
        logicFilterMap.put("age",new UserAgeLogic());
        logicFilterMap.put("sex",new SexLogic());
        logicFilterMap.put("work",new WorkLogic());
    }
}
